package com.lxq.blog.com.lxq.blog.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Setter
@Getter
@ToString
@Entity
public class Blog {
    @Id
    private String id;
    private String title;
    private String description;
    private String cover;
    private String username;
//    @Column(columnDefinition = "datetime")
    private String date;
    @Column(columnDefinition = "int default 0")
    private int reading;
    @Column(columnDefinition = "text")
    private String content;
    @Column(columnDefinition = "int default 0")
    private int thumb;
    @Column(columnDefinition = "varchar(20) default \"文章\"")
    private String blogType;
}
